#ifndef _CLIENTRECEIVER_H_
#define _CLIENTRECEIVER_H_

#pragma once
#include "GameClient.h"
#include "concurrent\Runnable.h"

using namespace concurrent;

class GameClient;

class ClientReceiver : public Runnable
{
public:
	ClientReceiver(GameClient* client);
	virtual ~ClientReceiver(void);

	void setClient(GameClient* client);
	GameClient* getClient(void);
	void setIsReceiving(bool flag);
	bool isReceiving(void);

	int startReceivingUpdates(void);
	void stopReceivingUpdates(void);

protected:
	virtual DWORD run(void);
private:
	GameClient* client;
	bool _isReceiving;
};

#endif
